package hu.gar.core.dao;

import hu.gar.core.entity.Role;
import hu.gar.core.entity.UserToRole;
import hu.gar.vo.UserToRoleVO;

import java.util.List;

public interface UserToRoleDao extends GenericDao<UserToRole, Long>,
		BaseConvertDao<UserToRole, UserToRoleVO> {

	List<Role> findByUserId(Long userId);

	void addRoleToUser(Long userId, Long roleId);

	void removeRoleFromUser(Long userId, Long roleId);

	UserToRole findByUserIdAndRoleId(Long userId, Long roleId);

}
